package com.lysj.website.leshua.controller;

import com.lysj.website.common.spring.base.BaseController;
import com.lysj.website.common.spring.base.BaseService;
import com.lysj.website.common.web.Resp;
import com.lysj.website.leshua.domain.LeShuaBank;
import com.lysj.website.leshua.service.LsMchInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author lb
 * @date 2019/11/13 17:33
 * @Description
 */
@RestController
@RequestMapping(value = "/merchant/ls_mch_info")
@Slf4j
public class LsMchController extends BaseController<LeShuaBank> {

    @Resource
    private LsMchInfoService lsMchInfoService;

    @Override
    public LsMchInfoService getService() {
        return lsMchInfoService;
    }

    @GetMapping(value = "/find_bank")
    public Resp findBank(String bankName){

        return new Resp().success(lsMchInfoService.findBankName(bankName));

    }


}
